import {request} from '@/utils/request'//导入封装好的js文件

export const getSchoolList = (current,pageSize)=>{
    return request({
        url:`/schoolinfo/page/${current}/${pageSize}`,
        method:'get',
        header:{
            isToken: true,
            repeatSubmit: false
        }
    })
}

export const getNearSchool = (data)=>{
    return request({
        url:`/schoolinfo/near`,
        method:'post',
        header:{
            isToken: true,
            repeatSubmit: false
        },
        data
    })
}


export const searchSchool = (data)=>{
    return request({
        url:`/schoolinfo/search`,
        method:'post',
        header:{
            isToken: true,
            repeatSubmit: false
        },
        data
    })
}
